package com.wgy.designmode.structure.decorator.decorator;

import com.wgy.designmode.structure.decorator.shape.Shape;

public class RedShapeDecorator extends ShapeDecorator{
    public RedShapeDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        super.draw();
        setRedBorder();
    }

    private void setRedBorder() {
        System.out.println("设置红色边框");
    }
}
